package com.example.estest.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author whx
 * @date 2022/7/3
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> implements Serializable {

    private List<T> data;

    private long total;

    public static <T> PageResult<T> data(List<T> data,long count){
      return new PageResult<>(data,count);
    }

}
